home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 1
/
Precision Software Applications Silver Collection Volume One (PSM) (1993).iso
/
tutor
/
clipper.exe
/
CLIPAPP.PRG
next >
Wrap
Text File
|
1985-08-03
|
5KB
|
157 lines
*clipwage.PRG
Set Talk Off
Set Bell Off
Set Index To CLIPWAGE
Go Bottom
Vname = ' '
Vaddress = ' '
Vroad = ' '
Vtown = ' '
Vcounty = ' '
Vwage = 0.00
Vemp = 0
Clear
Set Color To 7/0,R/W
@ 1,0 Say "╔══════════════════════════════════════════════════════════════════════════════╗"
@ 2,0 Say "║"
Set Color To W+/R, R/W
@ 2,1 Say " C L I P P E R dBASE III True compiler "
Set Color To 7/0,R/W
@ 2,79 Say "║"
@ 3,0 Say "║"
Set Color To W+/R, R/W
@ 3,1 Say " "
Set Color To 7/0,R/W
@ 3,79 Say "║"
@ 4,0 Say "║"
Set Color To W+/R, R/W
@ 4,1 Say " Demonstration of DATA ENTRY SPEED on a database "
Set Color To 7/0,R/W
@ 4,79 Say "║"
@ 5,0 Say "║"
Set Color To W+/R, R/W
@ 5,1 Say " using an INDEX FILE on the field NAME "
sele 1
Set Color To 7/0,R/W
@ 5,79 Say "║"
@ 6,0 Say "╚══════════════════════════════════════════════════════════════════════════════╝"
@ 8,4 Say "┌─────────────────────────────────────┐"
@ 9,4 Say "│"
Set Color To W+/R, R/W
@ 9,5 Say " Name : "
Set Color To 7/0,R/W
@ 9,42 Say "│"
@ 10,4 Say "└─────────────────────────────────────┘"
@ 8,50 SAY "┌────────────────────────┐"
@ 9,50 SAY "│"
SET COLO TO W+/R, R/W
@ 9,51 SAY " Record No : "
SET COLO TO 7/0,R/W
@ 9,75 SAY "│"
@ 10,50 SAY "└────────────────────────┘"
@ 11,4 Say "┌─────────────────────────────────────┐ ┌──────────────────────────────┐"
@ 12,4 Say "│"
Set Color To W+/R, R/W
@ 12,5 Say " Address : "
Set Color To 7/0,R/W
@ 12,42 Say "│"
@ 12,47 Say "│"
Set Color To W+/R, R/W
@ 12,48 Say " Road : "
Set Color To 7/0,R/W
@ 12,78 Say "│"
@ 13,4 Say "└─────────────────────────────────────┘ └──────────────────────────────┘"
@ 14,4 Say "┌─────────────────────────────┐ ┌───────────────────────────────┐"
@ 15,4 Say "│"
Set Color To W+/R, R/W
@ 15,5 Say " Town : "
Set Color To 7/0,R/W
@ 15,34 Say "│ │"
Set Color To W+/R, R/W
@ 15,42 Say " County : "
Set Color To 7/0,R/W
@ 15,73 Say "│"
@ 16,4 Say "└─────────────────────────────┘ └───────────────────────────────┘"
@ 17,4 Say "╔══════════════════════╗"
@ 18,4 Say "║"
Set Color To W+/R, R/W
@ 18,5 Say " Salary : "
Set Color To 7/0,R/W
@ 18,27 Say "║"
@ 19,4 Say "╚══════════════════════╝ ╔═══════════════════════════════╗"
@ 20,4 Say "╔═══════════════════════╗ ║"
Set Color To W+/R, R/W
@ 20,42 Say "Started employment : "
Set Color To 7/0,R/W
@ 20,73 Say "║"
@ 21,4 Say "║"
Set Color To W+/R, R/W
@ 21,5 Say " Employee No. : "
Set Color To 7/0,R/W
@ 21,28 Say "║ ╚═══════════════════════════════╝"
@ 22,4 Say "╚═══════════════════════╝"
Set Color To r+/0,r+/0
Skey = ' '
Set Function 10 To 'exit'
Lpr = .T.
Vname = ' '
Vaddress = ' '
Vroad = ' '
Vtown = ' '
Vcounty = ' '
Vwage = 0.00
Vemp = 0
Vstart = Ctod(" / / ")
Do While Lpr
set color to r+,r+
@ 23,10 Say " Hit PAGEDOWN KEY to bypass data entry "
set color to gr+/+r
@ 9,66 say str(recno(),3)
set color to /r, /r
@ 9,17 Get vname
@ 12,17 Get vaddress
@ 12,56 Get vroad
@ 15,14 Get vtown
@ 15,53 Get vcounty
@ 18,16 Get vwage PICT "999999.99"
@ 21,22 Get vemp PICT "999"
@ 20,63 Get vstart
Read
Clear Gets
Goahead = Space(4)
set color to w+/r
@ 23,10 Say "Hit F10 to accept data above, or RETURN to edit -->" Get goahead Pict '!!!!'
read
clear Gets
if Substr(goahead,1,4) <> 'EXIT'
Loop
endif
GoAhead = Space(4)
set color to w+/r
@ 23,10 Say "Hit RETURN to continue, or F10 to Exit --> " Get GoAhead Pict '!!!!'
Read
Clear Gets
if len(trim(vname)) > 0
Append Blank
Replace Name With Vname
Replace Address With Vaddress
Replace Road With Vroad
Replace Town With Vtown
Replace County With Vcounty
endif
if Substr(goahead,1,4) = 'EXIT'
Lpr = .F.
Set Color To 7/0,7/0
Loop
Endif
Vname = ' '
Vaddress = ' '
Vroad = ' '
Vtown = ' '
Vcounty = ' '
Vwage = 0.00
Vemp = 0
Vstart = CTOD(" / / ")
Enddo
Set Color To 7/0,7/0
Return